from bs4 import BeautifulSoup
import requests, re


def get_urls(base_url, urls):
    web = requests.get(base_url).content

    web_html = bytes.decode(web, 'utf-8')

    soup = BeautifulSoup(web_html, 'html.parser')

    tag_a = soup.find_all('a')

    for a in tag_a:
        link = a['href']
        if not link == 'javascript:void(0)' and 'http' not in link:
            if '.html' not in link:
                urls.append(base_url + link + 'index.html')
                continue
            urls.append(base_url + link)
    return urls
